const db = require('../../../libs/db.config');

// 校验手机号是否重复
module.exports = async (data) => {
    const { phone } = data;
    const searchSQL = `select * from user where phone = "${phone}"`;
    return await db.query(searchSQL);
};